<div class="p10 w600">
<!--startprint-->
  <div class="table-head fn-clear">质检记录</div>
  <table class="formtable">
  {loop $testing_logs $vo}
    <tr>
      <th class="w80">质检工程师</th>
      <td class="w150">{$vo['testing_admin_name']}</td>
      <th class="w80">质检时间::</th>
      <td class="w150">{date('Y-m-d',$vo['testing_time'])}</td>
    </tr>
    <tr>
      <th>质检结论:</th>
      <td colspan="3">{$vo['testing_text']}</td>
    </tr>
  {/loop}
  </table>
 <!--endprint-->
<div class="btn fn-tac">
  <a href="javascript:;" onClick="doPrint()"  class="button">
      <i class="iconfont icon-dayinji"></i> 打印
  </a>
</div>
</div>
<script type="text/javascript">
function doPrint() { 
    bdhtml=window.document.body.innerHTML; 
    sprnstr="<!--startprint-->"; 
    eprnstr="<!--endprint-->"; 
    prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
    prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
    window.document.body.innerHTML=prnhtml; 
    window.print(); 
}
</script>

